<?php
	include("access/connect.php");
	
	$firstName = $_POST['fName'];
	$lastName = $_POST['lName'];
	$password = $_POST['password'];
	$email = $_POST['Email'];
	$userID = intval($_POST['UID']);
	
	mysql_query("UPDATE user_table SET FName = '$firstName', LName = '$lastName', Password = '$password', Email = '$email' WHERE UID =$userID") 
		or die("User Info could not be Updated. ".mysql_error());
		
	echo "Your information has been changed. Thank You.  <br> <a href=\"home.php\">Go to Home Page</a> <br><a href=\"userinfo.php\">User Profile</a>";
	


?>